package com.app.business.teambuy.action;

import java.io.File;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;

import com.app.business.teambuy.application.domain.User;
import com.app.business.teambuy.application.service.UserService;



/*
 * ===========================================================================
 * Copyright 2007 WEBTRANING Corp. All Rights Reserved.
 * WEBTRANING PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * ===========================================================================
 * @version 1.0, 2014-4-5
 * @author  zqs
 * ===========================================================================
 * 
 */
@Controller
public class EditUser{	
	@Autowired
	private UserService userService;
	
	@RequestMapping("/business/teamBuy/input")
	public String edit(Model model, HttpServletRequest request, String productId) {
		Map<String, Object> result = new HashMap<String, Object>();
		User user=new User();
		user.setUsername("zhangsan");
		user.setPassword("123456");
	    user=userService.findUser(user);
		return "business/teamBuy/test";
	}

	

}
